import { AmbientLight, PointLight, DirectionalLight, SpotLight } from 'three'
// 创建一个环境光(物体每个色块的亮度都是一样的)
const ambinentLight = new AmbientLight('rgb(255,255,255)', 1)
//点光源
export const pointLight = new PointLight('rgb(255,255,255)', 1, 100)
pointLight.position.set(20, 20, 20)
// 增加平行光
const directionalLight = new DirectionalLight('rgb(255,255,255)', 1.5)
directionalLight.position.set(1000, 1000, 20)
// 增加聚光灯
export const spotLight = new SpotLight('rgb(255,255,255)', 1, 2000, (Math.PI / 180) * 30, 0, 0)
spotLight.position.set(15, 40, 35)

spotLight.castShadow = true //能产生阴影
export const LightsList = []
LightsList.push(ambinentLight, directionalLight, spotLight)
// LightsList.push(ambinentLight, directionalLight)
